package com.ljc.mall.controller;

import com.ljc.mall.client.SysUserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mall")
@Slf4j
public class MallController {

    @Autowired
    private SysUserClient userClient;

    @GetMapping("/test")
    public String test() {
        log.info("开始远程调用 user-service");
        return userClient.test();
    }

}